package com.acme.exceptions;

import com.acme.bankapp.domain.bank.Account;

@SuppressWarnings("serial")
public class OverDraftLimitExceedException extends NotEnoughFundsException{

	public Account account;	
	
	public OverDraftLimitExceedException() {
	}

	public OverDraftLimitExceedException(String message, Throwable cause) {
		super(message, cause);
	}

	public OverDraftLimitExceedException(String message) {
		super(message);
	}

	public OverDraftLimitExceedException(Throwable cause) {
		super(cause);
	}

	public OverDraftLimitExceedException(String message, Account account) {
		super(message);
		System.out.println(account.getAccountType(account));
		System.out.println(account.maximumAmountToWithdraw());
	}
}
